using System;

class MathExpression
{
    static void Main(string[] args)
    {
		int n = int.Parse(Console.ReadLine());
		//string dots = new string('.', (n - i) - 2);
		//string stars = new string('*', (i * 2) + 1);
		/*for(int row=1;i<=n;i++)
		{
			
			for(int dots=1;dots<=n;dots++)
			{
				Console.Write('.');
			}
			for(int asterix=1;asterix<=n;asterix++)
			{
				Console.Write('*');
			}
			Console.WriteLine();
			/*/
		
		int columns = 2 * n;
		//TOP
		for(int i = 1; i<=n;i++)
		{
			Console.Write('.');
		}
		for(int i = 1; i<=n;i++)
		{
			Console.Write('*');
		}
		Console.WriteLine();
		//MIDDLE
		for(int row = 1; row<=n-1; row++)
		{
			for(int column = 1; column<=columns-1; column++)
			{
				if(column+row == n +1 )
				{
					Console.Write('*');
				}
				else
				{
					Console.Write('.');
				}
			}
			Console.WriteLine('*');
		}
		for(int final = 1; final<=2*n;final++)
		{
			Console.Write('*');
		}
		Console.WriteLine();
	}
}